// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package com.geniusai.aip.auth.controller;

import com.geniusai.aip.auth.service.MetricService;
import com.geniusai.aip.auth.service.ResourceCustomVGpuService;
import com.geniusai.aip.auth.service.UserService;
import com.geniusai.aip.feature.common.web.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lingchuanzhou19320
 * @date 2022/8/15
 */
@RestController
@Slf4j
@RequestMapping("/v1")
public class ResourceController {

    @Autowired
    ResourceCustomVGpuService resourceCustomVGpuService;
    @Autowired
    MetricService metricService;

    /**
     * vGpu的自定义切分
     * @return
     */
    @GetMapping("/custom-vgpu")
    public String customVGpu() {
        resourceCustomVGpuService.customVGpuMemorySize();
        return "success";
    }

}
